.class public Les/br;
.super Ljava/lang/Object;
.source "FreeSpaceCutDownCondition.java"

# interfaces
.implements Les/cr;


# instance fields
.field private a:Les/lr;

.field public b:J

.field public c:I

.field public d:J


# direct methods
.method public constructor <init>(Les/lr;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    iput-object p1, p0, Les/br;->a:Les/lr;

    return-void
.end method


# virtual methods
.method public a()Z
    .locals 14

    .line 1
    iget-object v0, p0, Les/br;->a:Les/lr;

    const/4 v1, 0x0

    if-eqz v0, :cond_4

    instance-of v2, v0, Les/nr;

    if-nez v2, :cond_0

    goto :goto_0

    .line 2
    :cond_0
    check-cast v0, Les/nr;

    .line 3
    invoke-static {}, Lcom/estrongs/android/pop/o;->A0()Lcom/estrongs/android/pop/o;

    move-result-object v2

    const-wide/16 v3, 0x0

    .line 4
    invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v5

    const-string v6, "sdcard_available_memory"

    invoke-virtual {v2, v6, v5}, Lcom/estrongs/android/pop/o;->a(Ljava/lang/String;Ljava/lang/Long;)J

    move-result-wide v7

    .line 5
    invoke-static {}, Lcom/estrongs/android/pop/c;->b()Ljava/lang/String;

    move-result-object v5

    .line 6
    invoke-static {v5}, Lcom/estrongs/fs/util/f;->h(Ljava/lang/String;)[J

    move-result-object v5

    const/4 v9, 0x1

    .line 7
    aget-wide v10, v5, v9

    const/4 v12, 0x2

    aget-wide v12, v5, v12

    mul-long v10, v10, v12

    iput-wide v10, p0, Les/br;->d:J

    cmp-long v5, v7, v3

    if-lez v5, :cond_2

    cmp-long v3, v7, v10

    if-lez v3, :cond_2

    sub-long v2, v7, v10

    .line 8
    iput-wide v2, p0, Les/br;->b:J

    const-wide/high16 v4, 0x4059000000000000L    # 100.0

    long-to-double v10, v2

    .line 9
    invoke-static {v10, v11}, Ljava/lang/Double;->isNaN(D)Z

    mul-double v10, v10, v4

    long-to-double v4, v7

    invoke-static {v4, v5}, Ljava/lang/Double;->isNaN(D)Z

    div-double/2addr v10, v4

    double-to-int v4, v10

    iput v4, p0, Les/br;->c:I

    .line 10
    iget v5, v0, Les/nr;->a:I

    mul-int/lit16 v5, v5, 0x400

    mul-int/lit16 v5, v5, 0x400

    int-to-long v5, v5

    cmp-long v7, v2, v5

    if-gez v7, :cond_1

    int-to-long v2, v4

    iget-wide v4, v0, Les/nr;->b:J

    cmp-long v0, v2, v4

    if-ltz v0, :cond_3

    :cond_1
    return v9

    .line 11
    :cond_2
    iget-wide v3, p0, Les/br;->d:J

    invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v0

    invoke-virtual {v2, v6, v0}, Lcom/estrongs/android/pop/o;->b(Ljava/lang/String;Ljava/lang/Long;)V

    :cond_3
    const-string v0, "========Action \u589e\u52a0\u5927\u5c0f\u6216\u8005\u767e\u5206\u6bd4\u4e0d\u6ee1\u8db3"

    .line 12
    invoke-static {v0}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;)V

    :cond_4
    :goto_0
    return v1
.end method
